package com.example.singleactivitytemplate.ui.fragment.main


import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.example.singleactivitytemplate.databinding.FragmentMainBinding
import com.example.singleactivitytemplate.ui.base.BaseFragment


class MainFragment : BaseFragment<FragmentMainBinding, MainViewModel>(), View.OnClickListener {

    override fun getViewBindingClass(
        inflater: LayoutInflater,
        container: ViewGroup?
    ): FragmentMainBinding {
        return FragmentMainBinding.inflate(inflater, container, false)
    }

    override fun getViewModelClass(): Class<MainViewModel> {
        return MainViewModel::class.java
    }

    override fun initData() {

    }

    override fun initOnListener() {
        viewBinding?.btnIvyTv?.setOnClickListener(this)
        viewBinding?.btnJellyfishTv?.setOnClickListener(this)
        viewBinding?.btnOk?.setOnClickListener(this)
    }

    override fun initObserver() {

    }

    override fun onClick(v: View?) {

    }

    /**
     * 发送产品信息
     */
    private fun sendProductInfo() {

    }

    override fun detach() {

    }
}